package lesson2.tests;

import lesson2.api.ApplicationManager;
import lesson2.api.helpers.NavigationHelper;
import lesson2.api.helpers.PageHelper;

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;

public class TestBase
{
	protected ApplicationManager app;

	@BeforeClass
	public void setUp() throws Exception
	{
		app = new ApplicationManager();
		app.init();
	}

	@AfterClass
	public void tearDown()
	{
		app.stop();
	}

	public NavigationHelper navigationHelper()
	{
		return app.navigationHelper();
	}

	public PageHelper pageHelper()
	{
		return app.pageHelper();
	}

}
